﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web;
using System.Web.Http;
using FimetContoDeposito.BLL.Metadata;
using GrayParrot.Web.Formly;

namespace FimetContoDeposito.Controllers
{
    public class UtentiController : ApiController
    {
        [HttpGet]
        public string LoadFields()
        {
            string retValue = null;

            var m_fields = FormlyHelper.ToFormly<AssociazioneUtenteMagazzinoMetadata>(typeof(AssociazioneUtenteMagazzinoMetadata));

            retValue = FormlyHelper.Serialize(m_fields);

            return retValue;
        }

        [HttpPost]
        public System.Net.Http.HttpResponseMessage LoadArticolimagazzino(AnagraficaDTParameters data)
        {
            System.Net.Http.HttpResponseMessage retValue = new HttpResponseMessage(HttpStatusCode.InternalServerError);

            return retValue;
        }
    }
}